package com.zpl.member.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zpl.entity.BaseEntity;
import com.zpl.member.enums.Gender;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author wangyuxin
 * @date 2020/9/28
 */
@Data
@TableName("member")
@ApiModel(value = "会员", description = "会员实体")
public class Member extends BaseEntity {
    @ApiModelProperty(value = "会员名称", required = true)
    @TableField(value = "member_name")
    private String memberName;
    @ApiModelProperty(value = "头像", required = true)
    @TableField(value = "head_portrait")
    private String headPortrait;
    @ApiModelProperty(value = "密码", required = true)
    private String password;
    @ApiModelProperty(value = "昵称", required = true)
    private String nickname;
    @ApiModelProperty(value = "手机号", required = true)
    private String phone;
    @ApiModelProperty(value = "邮箱", required = true)
    private String email;
    @ApiModelProperty(value = "性别：0男1女", required = true)
    private Gender gender;
    @ApiModelProperty(value = "会员等级", required = true)
    private int level;
    @ApiModelProperty(value = "出生日期", required = true)
    private LocalDateTime birth;
    @ApiModelProperty(value = "积分", required = true)
    private int integral;
    @ApiModelProperty(value = "忘记密码问题", required = true)
    private String question;
    @ApiModelProperty(value = "忘记密码答案", required = true)
    private String answer;
}
